<div class="page">
    <div class="container">
        <div class="span10 offset1" style="margin-top:20px" id="wrap">
        	<div class="container-fluid">
        		<h4>Update Profile</h4>
				<div class="row-fluid">
					<div class="span4 thumbnail" id="profil-side">
					<br/>
                      <!-- <img src="<?php echo base_url(); ?>avatar/thumb/<?php echo $output['avatar']; ?>" class="img-polaroid span10 offset1">   -->
                      <!-- start carousel -->
                      <div id="myCarousel" class="carousel slide">
                        <ol class="carousel-indicators">
                          <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                          <li data-target="#myCarousel" data-slide-to="1"></li>
                        </ol>
                        <!-- Carousel items -->
                        <div class="carousel-inner">
                          <div class="active item">
                            <?php if($output['avatar'] != ""){ ?>
                            <img src="<?php echo base_url(); ?>avatar/thumb/<?php echo $output['avatar']; ?>" class="img-polaroid span10 offset1">
                            <?php } else { ?>
                            <img src="<?php echo base_url(); ?>/assets/img/person.png" class="img-polaroid span10 offset1">
                            <?php } ?>
                            <!-- <div class="carousel-caption">ubah avatar</div> -->
                          </div>
                          <div class="item">
                            <?php if($output['avatarMotor'] != ""){ ?>
                            <img src="<?php echo base_url(); ?>motor/thumb/<?php echo $output['avatarMotor']; ?>" class="img-polaroid span10 offset1">
                            <?php } else { ?>
                            <img src="<?php echo base_url(); ?>/assets/img/icon_motorcycle.jpg" class="img-polaroid span10 offset1">
                            <?php } ?>
                            <!-- <div class="carousel-caption"><a href="<?php echo site_url(); ?>/profil/avatar">ubah avatar motor</a></div> -->
                          </div>
                        </div>
                        <!-- Carousel nav -->
                        <a class="" href="#myCarousel" data-slide="prev">&lsaquo;</a>
                        <a class="" href="#myCarousel" data-slide="next">&rsaquo;</a>
                      </div>
                      <!-- end carousel -->
                      <div class="text-center"><a href="<?php echo site_url(); ?>/profil/avatar">ubah avatar</a></div>
                      <div class="text-center"><a href="<?php echo site_url(); ?>/profil/avatarMotor">ubah avatar motor</a></div>
                      <div class="text-center">rating: <?php print($output['rate']); ?> /10</div>
                      <div class="text-center"><?php echo $output['deliverCounter']; ?> kali diantar</div>   
                      <div class="text-center">mulai berbagi sejak <?php echo nicetime($output['entryDate']);?></div> <br/>
                      <div class="text-left offset1"><strong>DESKRIPSI:</strong></div>   
                      <div class="text-left offset1"><textarea rows="3" class="span1" name="bio" placeholder=""><?php echo $output['bio'];?></textarea></div>   <br/>
                      <div class="text-left offset1"><strong>PENGGUNA 
                        <?php 
                          if($output['isPremium'] == 1){
                            echo 'PREMIUM';
                          } else if($output['isPremium'] == 2){
                            echo 'SEMI-PREMIUM'; ?>
                            <?php if(!$isConfirm){ ?>
                            <a href="<?php echo site_url().'/profil/confirm/'.$output['id'];?>">Konfirmasi pembayaran</a> 
                            <?php } else {?>
                            (menunggu persetujuan admin)
                            <?php } ?>
                        <?php } else {
                            echo 'GRATIS'; ?> 
                            <?php if($output['id'] == $id) { ?>    
                            <br/><a href="<?php echo site_url().'/profil/premium/'.$output['id'];?>">Go premium?</a>                       
                            <?php  } ?>
                        <?php  } ?>
                      </strong></div>  <br/>                       
					</div>
					<div class="span6 thumbnail" id="profil-side"><br/>
					<form class="row-fluid" name="go" method="POST" action="<?php echo site_url('profil/update/'.$output['id']);?>">
						<div class="row">   
							<div class="span3 offset1">Nama </div> 
							<div class="span6 offset1"><input type="text" name="name" value="<?php echo $output['name'];?>" /></div>
						</div>
						<div class="row">   
							<div class="span3 offset1">	Password </div>
							<div class="span6 offset1">	<input type="password" name="password" value="" /> </div>
						</div>
						<div class="row">  
							<div class="span3 offset1">	Nomor telepon/HP </div>
							<div class="span6 offset1">	<input type="tel" name="phoneNumber" value="<?php echo $output['phoneNumber'];?>" /></div>
						</div>
						<div class="row">  
						<div class="span3 offset1">	Email </div>	
						<div class="span6 offset1"><input type="email" name="email" value="<?php echo $output['email'];?>" /></div>
						</div>
						<!-- <div class="row">  
						<div class="span3 offset1">	Bio </div>
						<div class="span6 offset1">	<input type="text" name="bio" value="<?php echo $output['bio'];?>" /></div>
						</div> -->
						<div class="row">  
						<div class="span3 offset1">	Alamat </div>
						<div class="span6 offset1">	<input type="text" name="address" value="<?php echo $output['address'];?>" /></div>
						</div>
						<div class="row">   
							<div class="span3 offset1">	Nomor SIM </div>
							<div class="span6 offset1">	<input type="text" name="licenseNumber" value="<?php echo $output['licenseNumber'];?>" /></div>
						</div>
						<div class="row">   
							<div class="span3 offset1">	Deskripsi Motor/Mobil </div>
							<div class="span6 offset1"><input type="text" name="motorDesc" value="<?php echo $output['motorDesc'];?>" /></div>
						</div>
						<div class="row">   
							<div class="span3 offset1">	Tahun Motor/Mobil </div>
							<div class="span6 offset1">	<input type="text" name="motorYear" value="<?php echo $output['motorYear'];?>" /></div>
						</div>
						<div class="row">   
							<div class="span6">	<input type="submit" class="btn btn-primary btn-large span6 offset6" value="submit"/> </div>
						</div>
					</form>
					</div><br/>

				</div><div class="row-fluid"><br/></div>
			</div>


        </div>
    </div>
</div>
